import {get, post, put, del} from '@/utils/request'

export function add(data) {
    return post('/home/service-area/add', data)
}

export function getInfo(page, pageSize, searchForm) {
    return get('/home/service-area/list?page=' + page + '&pageSize=' + pageSize + '&name=' + searchForm.name)
}


export function getIdAndName(serviceRegion) {
    return get('/home/service-area/get-id-and-name?serviceRegion=' + serviceRegion)
}


export function update(data) {
    return put('/home/service-area/update', data)
}

export function updateStatus(data) {
    return put('/home/service-area/update-status', data)
}

export function deleteUser(id) {
    return del(`/user/delete/${id}`)
}
